
<table class="tg">
  <tr><th class="thg">CHIMS @ LRH User Registration:</th></tr>
  <tr><td class="tdw">

    <fieldset><legend>Registration form:</legend>
     	<form autocomplete="off" action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
        <table cellpadding="8">
      	  <?php if($error != "") { ?><tr><td colspan="4"><b><font color="red"><?php print $error; ?></font></b><br></td></tr><?php } ?>
          <tr><td><br /><b>Login details:</b></td><td>Login name:<font color="red">*</font><br /><input type="text" maxlength="20" size="20" name="uname" value ="<?php echo $user->getUserName(); ?>" /></td>
            <td>Password:<font color="red">*</font><br /><input type="password" maxlength="20" size="20" name="pass" value ="" /></td>
            <td>Retype Password:<font color="red">*</font><br /><input type="password" maxlength="20" size="20" name="pass2"></td></tr>
          <tr><td><br /><b>Your details:</b></td>
            <td>Title:<font color="red">*</font><br /><select name="tit"><option value=""></option>
              <?php $tit = $user->getTitle();?>
              <option value="Mr." <?php if($tit=='Mr.'){echo "selected='selected'";} ?> >Mr.</option>
              <option value="Ms." <?php if($tit=='Ms.'){echo "selected='selected'";} ?> >Ms.</option>
              <option value="Dr." <?php if($tit=='Dr.'){echo "selected='selected'";} ?> >Dr.</option>
              <option value="Prof." <?php if($tit=='Prof.'){echo "selected='selected'";} ?> >Prof.</option>
              </select></td>
            <td>Name:<font color="red">*</font><br /><input type="text" maxlength="20" size="20" name="ufname" value ="<?php echo $user->getFirstName(); ?>" /></td>
            <td>Surname:<br /><input type="text" maxlength="20" size="20" name="usname" value ="<?php echo $user->getLastName(); ?>" /></td>
          </tr>
          <?php 
          $unid1 = $user->getUnit();
          $des2 = $user->getDesignation();
          ?>
          <tr><td></td><td>Unit / Ward:<font color="red">*</font><br /><select name="unid"><option value=""></option><?php include_once 'unit.php'; ?></select></td>
            <td>Designation:<font color="red">*</font><br /><select name="des"><option value=""></option><?php include_once 'des.php'; ?></select></td>
            <td>National ID No:<br /><input type="text" maxlength="10" size="15" name="nid" value ="<?php echo $user->getNid(); ?>" /></td>
          </tr>
          <tr><td></td><td>eMail:<br /><input type="text" maxlength="50" size="20" name="email" value ="<?php echo $user->getEmail(); ?>" /></td>
            <td>Mobile No:<br /><input type="text" maxlength="10" size="12" name="mob" value ="<?php echo $user->getMobile(); ?>" /></td>
            <td>Other No:<br /><input type="text" maxlength="10" size="12" name="ono" value ="<?php echo $user->getOtherPhone(); ?>" /></td></tr>
          <tr><td><b>Security No:</b></td><td><img src="plot/secimg.php" /></td>
           <td>Type Security No:<font color="red">*</font><br /><input name="secno" type='text' value="" size="10" maxlength="6"></td>
           <td> <br /><input type="submit" name="ureg" value="Register Me" /></td></tr>
          <tr><td></td><th colspan="3"><font color="red">*</font> Required</th></tr>
        </table>
      </form>
    </fieldset>
       
  </td></tr>
</table>

<?php include_once 'foot.php'; ?>